﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Compilex.BaseLibrary;

namespace Compilex.Syntatic
{
    public class SymbolTable : SimpleHashtable<string, Symbol>
    {

        public SymbolTable()
        {
        }

        public bool IsDeclared(SymbolClass symClass, string id)
        {
            return this.ContainsKey(id) && this[id].Class == symClass;
        }
    }
}
